manage = {
		openSearch:function(){
			var element = document.getElementById("J_condition"); 
			element.style.display = "block";
			window.app.mask.close(function(){
				var container = document.getElementById("J_condition_container");
				var element = document.getElementById("J_condition");
				element.style.display = "none";
				container.appendChild(element);
			});
			window.app.mask.open(element);
			element.style.height = Utils.pixel.style(window.top.document.body.offsetHeight);

			var left = Utils.center.left(element);
			element.style.position = "fixed";
			element.style.left = Utils.pixel.style(left); 
			element.style.top = "0px";
		},
		search : function(){
			window.app.mask.close();
			paging.go(1);
		},
		expt:function(){
			var form = $("#J_form");
			var manage = $("#J_form").attr("action");
			var expt = manage.replace("manage","export");
			form.attr("action",expt);
			form.attr("target","_blank");
			form.submit();
			
			form.attr("action",manage);
			form.attr("target","_self");
		},
		remove:function(id){
			var manage = $("#J_form").attr("action");
			var url = manage.replace("manage.html","remove.json");
			window.app.loading.open();
			new Ajax({
				url:url,
				data:{
					id:id
				},
				success:function(response){
					window.app.loading.close();
					if(response.code=="1"){
						window.app.dialog.success(response.msg,function(){
							window.top.$("#J_form").submit();
						});
					}else{
						window.app.dialog.error(response.msg);
					}
				}
			});
		},
		copy:function(id){
			var manage = $("#J_form").attr("action");
			var url = manage.replace("manage.html","copy.json");
			window.app.loading.open();
			new Ajax({
				url:url,
				data:{
					id:id
				},
				success:function(response){
					window.app.loading.close();
					if(response.code=="1"){
						window.app.dialog.success(response.msg,function(){
							window.top.$("#J_form").submit();
						});
					}else{
						window.app.dialog.error(response.msg);
					}
				}
			});
		},
		request:function(url,data){
			var manage = $("#J_form").attr("action");
			var url = manage.replace("manage.html",url);
			window.app.loading.open();
			new Ajax({
				url:url,
				data:data,
				success:function(response){
					window.app.loading.close();
					if(response.code=="1"){
						window.app.dialog.success(response.msg,function(){
							window.top.$("#J_form").submit();
						});
					}else{
						window.app.dialog.error(response.msg);
					}
				}
			});
		}
};